<?php
class UserModel extends Model{
    /**
     * 用户信息鉴权
     */
    public function isUser(){
        $tempPost = $_POST;
        $map['username'] = array('eq',$tempPost['username']);
        $map['password'] = array('eq',$tempPost['password']);
        return $this->where($map)->find();
    }


}